package com.zhanglu.fun.gateway.client;

import com.zhanglu.fun.gateway.bean.request.TokenRequest;
import com.zhanglu.fun.tookit.jwt.AuthenticationUser;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @description
 * @Auther zhanglu
 * @Date 2017/9/20 下午4:08
 */

@FeignClient("AUTHENTICATIONCENTER")
public interface AuthenticationClient {
    @PostMapping("/fun/secure/token")
    String refreshToken(@RequestBody TokenRequest request);
}
